package com.ycw.bean;

import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "users")
public class Users {
	@Id
	private Integer usId;

	private String usEmail;

	private String usName;

	private String usPassword;

	private Double usMoney;

	private String usIdcard;

	private String usPhone;

	private String usAddress;

	private Integer usRole;

	private String usSex;

	private String usCode;

	public Integer getUsId() {
		return usId;
	}

	public void setUsId(Integer usId) {
		this.usId = usId;
	}

	public String getUsEmail() {
		return usEmail;
	}

	public void setUsEmail(String usEmail) {
		this.usEmail = usEmail;
	}

	public String getUsName() {
		return usName;
	}

	public void setUsName(String usName) {
		this.usName = usName;
	}

	public String getUsPassword() {
		return usPassword;
	}

	public void setUsPassword(String usPassword) {
		this.usPassword = usPassword;
	}

	public Double getUsMoney() {
		return usMoney;
	}

	public void setUsMoney(Double usMoney) {
		this.usMoney = usMoney;
	}

	public String getUsIdcard() {
		return usIdcard;
	}

	public void setUsIdcard(String usIdcard) {
		this.usIdcard = usIdcard;
	}

	public String getUsPhone() {
		return usPhone;
	}

	public void setUsPhone(String usPhone) {
		this.usPhone = usPhone;
	}

	public String getUsAddress() {
		return usAddress;
	}

	public void setUsAddress(String usAddress) {
		this.usAddress = usAddress;
	}

	public Integer getUsRole() {
		return usRole;
	}

	public void setUsRole(Integer usRole) {
		this.usRole = usRole;
	}

	public String getUsSex() {
		return usSex;
	}

	public void setUsSex(String usSex) {
		this.usSex = usSex;
	}

	public String getUsCode() {
		return usCode;
	}

	public void setUsCode(String usCode) {
		this.usCode = usCode;
	}

	@Override
	public String toString() {
		return "Users [usId=" + usId + ", usEmail=" + usEmail + ", usName=" + usName + ", usPassword=" + usPassword
				+ ", usMoney=" + usMoney + ", usIdcard=" + usIdcard + ", usPhone=" + usPhone + ", usAddress="
				+ usAddress + ", usRole=" + usRole + ", usSex=" + usSex + ", usCode=" + usCode + "]";
	}

	public Users(Integer usId, String usEmail, String usName, String usPassword, Double usMoney, String usIdcard,
			String usPhone, String usAddress, Integer usRole, String usSex, String usCode) {
		super();
		this.usId = usId;
		this.usEmail = usEmail;
		this.usName = usName;
		this.usPassword = usPassword;
		this.usMoney = usMoney;
		this.usIdcard = usIdcard;
		this.usPhone = usPhone;
		this.usAddress = usAddress;
		this.usRole = usRole;
		this.usSex = usSex;
		this.usCode = usCode;
	}

	public Users() {
		super();
	}

}